package com.songqi.common.core.exception;



/**
 * 自定义异常
 *
 * @author songqi(13776346982)
 */
public class CustomException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private Integer code;


    public CustomException(String message) {
        super(message);
    }

    public CustomException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public CustomException(String message, Throwable e) {
        super(message, e);
    }


    public Integer getCode() {
        return code;
    }
}
